FROM adoptopenjdk/openjdk8
LABEL maintainer="linux.hxh@outlook.com"
COPY target/*.jar /app.jar
# 同步时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai'>/etc/timezone && touch /app.jar
EXPOSE 8080
ENV JAVA_OPTIONS=""
ENV PARAMS=""
ENTRYPOINT ["sh","-c","java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTIONS -jar /app.jar $PARAMS"]